
pkgname=npth
pkgver=1.5
pkgrel=1
pkgdesc='Library to provide the GNU Pth API and thus a non-preemptive threads implementation.'
url="https://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git;a=blob_plain;f=README;hb=refs/heads/master"
license=('LGPL')
options=('!libtool')
arch=('x86_64')
source=("https://www.gnupg.org/ftp/gcrypt/npth/${pkgname}-${pkgver}.tar.bz2")
md5sums=('9ba2dc4302d2f32c66737c43ed191b1b')

build() {
    cd ${pkgname}-${pkgver}

    ./configure --prefix=/usr --enable-maintainer-mode
    make
}

check() {
    cd ${pkgname}-${pkgver}

    make check
}

package() {
    cd ${pkgname}-${pkgver}

    make DESTDIR=${pkgdir} install
}
